﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PlanningGIS.Util.Log;

namespace PlanningGIS.Framework.Config
{
    /// <summary>
    /// Function:获取系统配置文件中的信息
    /// Coder：WUC
    /// Date：2016-10-20
    /// </summary>
    public class TileConfigHelper
    {
        //切片缓存模板
        private static TileConfig _TileConfig = null;

        /// <summary>
        /// 切片缓存配置
        /// </summary>
        public static TileConfig TileConfigModel
        {
            get
            {
                if (_TileConfig == null)
                {
                    try
                    {
                        _TileConfig = ConfigHelper.GetObject<TileConfig>();
                    }
                    catch (Exception ex)
                    {
                        LogHelper.WriteErrorText("序列化GeodeticConfig错误：" + ex.Message);
                    }
                }
                return _TileConfig;
            }
        }
    }
}
